﻿<phone:PhoneApplicationPage
    x:Class="OsmerFvg.Views.ForecastZoomView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:imagetools="clr-namespace:ImageTools.Controls;assembly=ImageTools.Controls"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <phone:PhoneApplicationPage.Resources>
        <imagetools:ImageConverter x:Key="ImageConverter" />
    </phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot is the root grid where all page content is placed-->

    <Grid Grid.Row="1" Margin="0,0,0,0">
        <Image Stretch="Uniform" Margin="20,0,30,160" Width="440" Height="474" Source="\Images\SfondoPrevisioni.png" />
        <imagetools:AnimatedImage Margin="20,0,30,160" Stretch="Uniform"  Width="440" Height="474" Source="{Binding Path=ForecastImageSource, Converter={StaticResource ImageConverter}}" >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Tap">
                    <cal:ActionMessage MethodName="BackTapCommand" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </imagetools:AnimatedImage>
    </Grid>

</phone:PhoneApplicationPage>